import {Route, Routes} from "react-router-dom";

import IndexPage from "@/pages/index";
import DocsPage from "@/pages/docs";
import PricingPage from "@/pages/pricing";
import BlogPage from "@/pages/blog";
import AboutPage from "@/pages/about";

import {NextUIProvider} from "@nextui-org/react";
import RegisterPage from "@/pages/register.tsx";
import LoginPage from "@/pages/login.tsx";
import PlaygroundPage from "@/pages/playground/playground.tsx";

function App() {
    return (
        <NextUIProvider>
            <Routes>
                <Route element={<IndexPage/>} path="/"/>
                <Route element={<PlaygroundPage/>} path="/playground"/>
                <Route element={<RegisterPage/>} path="/register"/>
                <Route element={<LoginPage/>} path="/login"/>
                <Route element={<DocsPage/>} path="/docs"/>
                <Route element={<PricingPage/>} path="/pricing"/>
                <Route element={<BlogPage/>} path="/blog"/>
                <Route element={<AboutPage/>} path="/about"/>
            </Routes>
        </NextUIProvider>
    );
}

export default App;
